﻿@model List<CSharpDay07__Singleton_.Models.Movie>
<br />
<div>
    <a href="/Home/AddMovie">Add a Movie</a>
</div>

@foreach (var movie in Model)
{
    <div class="container well">
        <div class="row">
            <div class="col-sm-3">
                <img src="@movie.ImageUrl" class="img-responsive img-rounded" style="max-height: 100px" />
            </div>
            <div class="col-sm-9">
                <h5><i>Title: </i>@movie.Title</h5>
                <h5><i>Rating: </i>@movie.Rating</h5>
                <a class="btn btn-block" href ="/Home/EditMovie/@movie.Id">Edit</a>
                <a class="btn btn-block" href="/Home/DeleteMovie/@movie.Id">Delete</a>
            </div>
        </div>
    </div>
}
